Namespaces

Types in FluentNHibernate.Mapping

Type ToManyBase<T, TChild, TRelationshipAttributes>

Namespace FluentNHibernate.Mapping

Interfaces ICollectionMappingProvider

Methods

Properties

Public instance methods

T AsArray<TIndex>(Expression<Func<TChild, TIndex>> indexSelector)

Use an array
Parameters
Expression<Func<TChild, TIndex>> indexSelector

Index property

T AsArray<TIndex>(Expression<Func<TChild, TIndex>> indexSelector, Action<IndexBuilder> customIndexMapping)

Use an array
Parameters
Expression<Func<TChild, TIndex>> indexSelector

Index property

Action<IndexBuilder> customIndexMapping

Index mapping

T AsBag()

Use a bag collection

T AsIndexedCollection<TIndex>(string indexColumn, Action<IndexBuilder> customIndexMapping)

Make this collection index
Parameters
string indexColumn

Index column

Action<IndexBuilder> customIndexMapping

Index mapping

T AsIndexedCollection<TIndex>(Expression<Func<TChild, TIndex>> indexSelector, Action<IndexBuilder> customIndexMapping)

Make this collection indexed
Parameters
Expression<Func<TChild, TIndex>> indexSelector

Index property

Action<IndexBuilder> customIndexMapping

Index mapping

T AsList()

Use a list collection

T AsList(Action<IndexBuilder> customIndexMapping)

Use a list collection with an index
Parameters
Action<IndexBuilder> customIndexMapping

Index mapping

T AsSet()

Use a set collection

T AsSet(SortType sort)

Use a set collection
Parameters
SortType sort

Sorting

T AsSet<TComparer>()

Use a set collection

T CollectionType(TypeReference type)

Sets a custom collection type

T Element(string columnName, Action<ElementBuilder> customElementMapping)

Map an element/value type
Parameters
string columnName

Column name

Action<ElementBuilder> customElementMapping

Custom mapping

T Element(string columnName)

Map an element/value type
Parameters
string columnName

Column name

T ForeignKeyCascadeOnDelete()

Specify that the deletes should be cascaded

T Where(Expression<Func<TChild, bool>> where)

Sets the where clause for this one-to-many relationship. Note: This only supports simple cases, use the string overload for more complex clauses.

Public properties

AccessStrategyBuilder<T> Access get;

Set the access and naming strategy for this one-to-many.

CacheBuilder Cache get;

Specify caching for this entity.

CollectionCascadeExpression<TParent> Cascade get;

Specify the cascade behaviour

FetchTypeExpression<TParent> Fetch get;

Specify the fetching behaviour

T Not get;

Inverts the next boolean operation

OptimisticLockBuilder<TParent> OptimisticLock get;

Specify the optimistic locking behaviour